<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>购买飞机票</title>
</head>
<body>
<script>
    var p = prompt("你几月份买票？")

    if(p>=5 && p<=10){
        var m = prompt("头等舱还是经济舱？");
        if (m == "头等舱"){
            alert("2000R");
        }else if(m == "经济舱"){
            alert("800R");
        }
    }else {
        var n = prompt("头等舱还是经济舱？");
        if (n == "头等舱"){
            alert("800R");
        }else if(n == "经济舱"){
            alert("200R");
        }else{
            alert("输入错误了弟弟")
        }
    }
</script>
</body>
</html>